rm quizo.zip
rm example01.asm
rm quizo/*
rmdir quizo
mkdir quizo



dd bs=$((0x20000)) count=1 if=/dev/zero of=dummy128k.bin








#cpu

#- zxb.py example01.zxb --asm --org=$((0x0000))
#- zxb.py example01.zxb --org=$((0x0000))
zxb.py library/smsboot.bas --org=1024
dd ibs=1 count=$((0x0069)) skip=$((0x0000)) if=smsboot.bin of=smsboot2.bin
zxb.py example01.zxb --heap-size=128 --asm --org=$((0x0069))
zxb.py example01.zxb --heap-size=128 --org=$((0x0069))
cat example01.bin >> smsboot2.bin
rm example01.bin
mv smsboot2.bin example01.bin
cat dummy128k.bin >> example01.bin
dd ibs=1 count=$((0x4000)) skip=$((0x0000)) if=example01.bin of=quizo/rom1

#- ROM_START( quizo )
#- ROM_REGION( 0x10000, "maincpu", 0 )
#- ROM_LOAD( "rom1",   0x0000, 0x4000, CRC(6731735f) SHA1(7dbf48f833c7b7cde77df2a10781e5a8b6ae0533) )
#- ROM_CONTINUE(             0x0000, 0x04000 )








#user1 - ?

dd bs=$((0x8000)) count=1 if=/dev/zero of=quizo/rom2
dd bs=$((0x8000)) count=1 if=/dev/zero of=quizo/rom3
dd bs=$((0x8000)) count=1 if=/dev/zero of=quizo/rom4

#- ROM_REGION( 0x18000, "user1", 0 )
#- ROM_LOAD( "rom2",   0x00000, 0x8000, CRC(a700eb30) SHA1(7800b3d2b7992c67c91cfb7e02c7cfc313b0ed5d) )
#- ROM_LOAD( "rom3",   0x08000, 0x8000, CRC(d344f97e) SHA1(3d669a56f084f2a7a50d7d211b84a50d35de66ac) )
#- ROM_LOAD( "rom4",   0x10000, 0x8000, CRC(ab1eb174) SHA1(7d7a935aa7196a814c15f13444b88e770678b672) )







#proms



zxb.py library/palette01.bas --org=$((0x0000))
cat dummy32k.bin >> palette01.bin
dd ibs=1 count=$((0x0020)) skip=$((0x0010)) if=palette01.bin of=quizo/82s123
rm palette01.bin

#dd bs=$((0x20)) count=1 if=/dev/urandom of=quizo/82s123

#- ROM_REGION( 0x0020,  "proms", 0 )
#- ROM_LOAD( "82s123",   0x0000, 0x0020, CRC(c3f15914) SHA1(19fd8e6f2a1256ae51c500a3bf1d7358810ef97e) )
#- ROM_END








rm smsboot.bin dummy128k.bin example01.bin

zip -r quizo quizo
rm quizo/*
rmdir quizo

mame -w -video soft -resolution0 512x512 -rp ./ quizo







#------------------------------------------------------------------------------------------------------

#- ROM_START( quizo )
#- ROM_REGION( 0x10000, "maincpu", 0 )
#- ROM_LOAD( "rom1",   0x0000, 0x4000, CRC(6731735f) SHA1(7dbf48f833c7b7cde77df2a10781e5a8b6ae0533) )
#- ROM_CONTINUE(             0x0000, 0x04000 )

#- ROM_REGION( 0x18000, "user1", 0 )
#- ROM_LOAD( "rom2",   0x00000, 0x8000, CRC(a700eb30) SHA1(7800b3d2b7992c67c91cfb7e02c7cfc313b0ed5d) )
#- ROM_LOAD( "rom3",   0x08000, 0x8000, CRC(d344f97e) SHA1(3d669a56f084f2a7a50d7d211b84a50d35de66ac) )
#- ROM_LOAD( "rom4",   0x10000, 0x8000, CRC(ab1eb174) SHA1(7d7a935aa7196a814c15f13444b88e770678b672) )

#- ROM_REGION( 0x0020,  "proms", 0 )
#- ROM_LOAD( "82s123",   0x0000, 0x0020, CRC(c3f15914) SHA1(19fd8e6f2a1256ae51c500a3bf1d7358810ef97e) )
#- ROM_END







